// +---------------------------------------------------------------------
// | CRMEB [ CRMEB赋能开发者，助力企业发展 ]
// +---------------------------------------------------------------------
// | Copyright (c) 2016~2023 https://www.crmeb.com All rights reserved.
// +---------------------------------------------------------------------
// | Licensed CRMEB并不是自由软件，未经许可不能去掉CRMEB相关版权
// +---------------------------------------------------------------------
// | Author: CRMEB Team <admin@crmeb.com>
// +---------------------------------------------------------------------

import LayoutMain from '@/layout';
import setting from '@/setting';
let routePre = setting.routePre;

const pre = 'manage_';

export default {
  path: routePre + '/manage',
  name: 'manage',
  header: 'manage',
  meta: {
    // 授权标识
    auth: ['admin-store-index'],
  },
  redirect: {
    name: `${pre}cultivate`,
  },
  component: LayoutMain,
  children: [
    {
      path: '/company/cultivate/index',
      name: `${pre}cultivate`,
      meta: {
        title: '培训管理',
        auth: ['admin-store-storeProuduct-index'],
        keepAlive: true,
      },
      component: () => import('@/pages/manage/cultivate'),
    },
    {
      path: "/company/addCultivate/index",
      name: `addCultivate`,
      meta: {
        title: '新增培训',
        auth: ['admin-store-storeProuduct-index'],
      },
      component: () => import('@/pages/manage/addCultivate'),
    },
    {
      path: "/company/courseList/index",
      name: `courseList`,
      meta: {
        title: '课程列表',
        auth: ['admin-store-storeProuduct-index'],
      },
      component: () => import('@/pages/manage/courseList'),
    },
    {
      path: "/company/studentList/index",
      name: `studentList`,
      meta: {
        title: '学员列表',
        auth: ['admin-store-storeProuduct-index'],
      },
      component: () => import('@/pages/manage/studentList'),
    },
    {
      path: "/company/cartList/index",
      name: `cartList`,
      meta: {
        title: '结业证',
        auth: ['admin-store-storeProuduct-index'],
      },
      component: () => import('@/pages/manage/cartList'),
    },
    {
      path: "/company/addStudent/index",
      name: `addStudent`,
      meta: {
        title: '新增学员',
        auth: ['admin-store-storeProuduct-index'],
      },
      component: () => import('@/pages/manage/addStudent'),
    },
    {
      path: "/company/setRule/index",
      name: `setRule`,
      meta: {
        title: '设置规则',
        auth: ['admin-store-storeProuduct-index'],
      },
      component: () => import('@/pages/manage/setRule'),
    },
    {
      path: "/company/course/index",
      name: `${pre}course`,
      meta: {
        title: '课程管理',
        auth: ['admin-store-storeProuduct-index'],
        keepAlive: true,
      },
      component: () => import('@/pages/manage/course'),
    },
    {
      path: "/company/publicCourse/index",
      name: `${pre}publicCourse`,
      meta: {
        title: '课程管理',
        auth: ['admin-store-storeProuduct-index'],
        keepAlive: true,
      },
      component: () => import('@/pages/manage/publicCourse'),
    },
    {
      path: "/company/publicCourseware/index",
      name: `${pre}publicCourseware`,
      meta: {
        title: '课件管理',
        auth: ['admin-store-storeProuduct-index'],
        keepAlive: true,
      },
      component: () => import('@/pages/manage/publicCourseware'),
    },
    {
      path: "/company/publicTestPaper/index",
      name: `${pre}publicTestPaper`,
      meta: {
        title: '试卷管理',
        auth: ['admin-store-storeProuduct-index'],
        keepAlive: true,
      },
      component: () => import('@/pages/manage/publicTestPaper'),
    },
    {
      path: "/company/publicQuestion/index",
      name: `${pre}publicQuestion`,
      meta: {
        title: '题库管理',
        auth: ['admin-store-storeProuduct-index'],
        keepAlive: true,
      },
      component: () => import('@/pages/manage/publicQuestion'),
    },
    {
      path: "/company/myCourse/index",
      name: `${pre}myCourse`,
      meta: {
        title: '我的课程',
        auth: ['admin-store-storeProuduct-index'],
        keepAlive: true,
      },
      component: () => import('@/pages/manage/myCourse'),
    },
    {
      path: "/company/myCourseware/index",
      name: `${pre}myCourseware`,
      meta: {
        title: '我的课件',
        auth: ['admin-store-storeProuduct-index'],
        keepAlive: true,
      },
      component: () => import('@/pages/manage/myCourseware'),
    },
    {
      path: "/company/myTestPaper/index",
      name: `${pre}myTestPaper`,
      meta: {
        title: '我的试卷',
        auth: ['admin-store-storeProuduct-index'],
        keepAlive: true,
      },
      component: () => import('@/pages/manage/myTestPaper'),
    },
    {
      path: "/company/myQuestion/index",
      name: `${pre}myQuestion`,
      meta: {
        title: '我的题库',
        auth: ['admin-store-storeProuduct-index'],
        keepAlive: true,
      },
      component: () => import('@/pages/manage/myQuestion'),
    },
    {
      path: "/company/addCourse/index",
      name: `addCourse`,
      meta: {
        title: '新增课程',
        auth: ['admin-store-storeProuduct-index'],
      },
      component: () => import('@/pages/manage/addCourse'),
    },
    {
      path: "/company/courseDetails/index",
      name: `courseDetails`,
      meta: {
        title: '课程详情',
        auth: ['admin-store-storeProuduct-index'],
      },
      component: () => import('@/pages/manage/courseDetails'),
    },
    {
      path: "/company/courseware/index",
      name: `${pre}courseware`,
      meta: {
        title: '课件管理',
        auth: ['admin-store-storeProuduct-index'],
        keepAlive: true,
      },
      component: () => import('@/pages/manage/courseware'),
    },
    {
      path: "/company/addCourseware/index",
      name: `addCourseware`,
      meta: {
        title: '新增课件',
        auth: ['admin-store-storeProuduct-index'],
      },
      component: () => import('@/pages/manage/addCourseware'),
    },
    {
      path: "/company/testPaper/index",
      name: `${pre}testPaper`,
      meta: {
        title: '试卷管理',
        auth: ['admin-store-storeProuduct-index'],
        keepAlive: true,
      },
      component: () => import('@/pages/manage/testPaper'),
    },
    {
      path: "/company/question/index",
      name: `${pre}question`,
      meta: {
        title: '题库管理',
        auth: ['admin-store-storeProuduct-index'],
        keepAlive: true,
      },
      component: () => import('@/pages/manage/question'),
    },
    {
      path: "/company/addTest/index",
      name: `addTest`,
      meta: {
        title: '新增试卷',
        auth: ['admin-store-storeProuduct-index'],
      },
      component: () => import('@/pages/manage/addTest'),
    },
    {
      path: "/company/testDetails/index",
      name: `testDetails`,
      meta: {
        title: '题库详情',
        auth: ['admin-store-storeProuduct-index'],
      },
      component: () => import('@/pages/manage/testDetails'),
    },
    {
      path: "/company/staff/index",
      name: `${pre}staff`,
      meta: {
        title: '人员管理',
        auth: ['admin-store-storeProuduct-index'],
        keepAlive: true,
      },
      component: () => import('@/pages/manage/staff'),
    },
    {
      path: "/company/position/index",
      name: `${pre}position`,
      meta: {
        title: '岗位工种管理',
        auth: ['admin-store-storeProuduct-index'],
        keepAlive: true,
      },
      component: () => import('@/pages/manage/position'),
    },
    {
      path: "/company/teacher/index",
      name: `${pre}teacher`,
      meta: {
        title: '教师管理',
        auth: ['admin-store-storeProuduct-index'],
        keepAlive: true,
      },
      component: () => import('@/pages/manage/teacher'),
    },
    {
      path: "/company/addTeacher/index",
      name: `addTeacher`,
      meta: {
        title: '新增教师',
        auth: ['admin-store-storeProuduct-index'],
      },
      component: () => import('@/pages/manage/addTeacher'),
    },
    {
      path: "/company/enterprise/index",
      name: `${pre}enterprise`,
      meta: {
        title: '组织架构管理',
        auth: ['admin-store-storeProuduct-index'],
        keepAlive: true,
      },
      component: () => import('@/pages/manage/enterprise'),
    },{
      path: "/company/user/index",
      name: `${pre}user`,
      meta: {
        title: '账号管理',
        auth: ['admin-store-storeProuduct-index'],
        keepAlive: true,
      },
      component: () => import('@/pages/manage/user'),
    },

    {
      path: "/company/addUser/index",
      name: `addUser`,
      meta: {
        title: '新增账户',
        auth: ['admin-store-storeProuduct-index'],
        keepAlive: true,
      },
      component: () => import('@/pages/manage/addUser'),
    },

    {
      path: "/company/addEnterprise/index",
      name: `addEnterprise`,
      meta: {
        title: '新增企业',
        auth: ['admin-store-storeProuduct-index'],
      },
      component: () => import('@/pages/manage/addEnterprise'),
    },
    {
      path: "/company/project/index",
      name: `${pre}project`,
      meta: {
        title: '项目管理',
        auth: ['admin-store-storeProuduct-index'],
        keepAlive: true,
      },
      component: () => import('@/pages/manage/project'),
    },
    {
      path: "/company/addProject/index",
      name: `addProject`,
      meta: {
        title: '新增项目',
        auth: ['admin-store-storeProuduct-index'],
        keepAlive: true,
      },
      component: () => import('@/pages/manage/addProject'),
    },
    {
      path: "/company/detailProject/index",
      name: `detailProject`,
      meta: {
        title: '项目详情',
        auth: ['admin-store-storeProuduct-index'],
        keepAlive: true,
      },
      component: () => import('@/pages/manage/detailProject'),
    },
    {
      path: "/company/subsidiary/index",
      name: `${pre}subsidiary`,
      meta: {
        title: '子公司管理',
        auth: ['admin-store-storeProuduct-index'],
        keepAlive: true,
      },
      component: () => import('@/pages/manage/subsidiary'),
    },
    {
      path: "/company/disclose/index",
      name: `${pre}disclose`,
      meta: {
        title: '交底管理',
        auth: ['admin-store-storeProuduct-index'],
        keepAlive: true,
      },
      component: () => import('@/pages/manage/disclose'),
    },
    {
      path: "/company/offlinetraining/index",
      name: `${pre}offlinetraining`,
      meta: {
        title: '线下培训',
        auth: ['admin-store-storeProuduct-index'],
        keepAlive: true,
      },
      component: () => import('@/pages/manage/offlinetraining'),
    },
    {
      path: "/company/discloseDetails/index",
      name: `discloseDetails`,
      meta: {
        title: '交底管理',
        auth: ['admin-store-storeProuduct-index'],
        keepAlive: true,
      },
      component: () => import('@/pages/manage/discloseDetails'),
    },
    {
      path: "/company/discloseType/index",
      name: `${pre}discloseType`,
      meta: {
        title: '交底分类',
        auth: ['admin-store-storeProuduct-index'],
        keepAlive: true,
      },
      component: () => import('@/pages/manage/discloseType'),
    },
    {
      path: "/company/article/index",
      name: `${pre}article`,
      meta: {
        title: '咨询管理',
        auth: ['admin-store-storeProuduct-index'],
        keepAlive: true,
      },
      component: () => import('@/pages/manage/article'),
    },
    {
      path: "/company/articleCategory/index",
      name: `${pre}articleCategory`,
      meta: {
        title: '文章分类管理',
        auth: ['admin-store-storeProuduct-index'],
        keepAlive: true,
      },
      component: () => import('@/pages/manage/articleCategory'),
    },
    {
      path: "/company/articleDetail/index",
      name: `articleDetail`,
      meta: {
        title: '文章详情',
        auth: ['admin-store-storeProuduct-index'],
      },
      component: () => import('@/pages/manage/articleDetail'),
    },
	{
	  path: "/company/projectType/index",
	  name: `${pre}projecType`,
	  meta: {
	    title: '项目分类',
	    auth: ['admin-store-storeProuduct-index'],
	    keepAlive: true,
	  },
	  component: () => import('@/pages/project/projectType'),
	},
	
  ],
}